package com.cskaoyan.service;

import com.cskaoyan.bean.Admin;
import com.cskaoyan.bean.AdminInfo;
import com.cskaoyan.bean.vo.AdminLogListVo;

import java.util.List;
import java.util.Map;

public interface AdminService {
    Map<String, Object> listAdmin(Integer page, Integer limit, String sort, String order, String username);

    Map<String, Object> createAdmin(Admin admin);

    Map<String, Object> updateAdmin(Admin admin);

    Integer deleteAdmin(Admin admin);

    AdminLogListVo queryAdminLogList(String name, Integer page, Integer limit, String sort, String order);

    List<String> selectPasswordByUsername(String username);

    List<String> selectRoleIds(String username);

    AdminInfo selectAdminInfo(String username);

    void insertlog(String username, String ip,String action);

}

